/*
 * @Author: aum
 * @Date: 2021-03-05 16:29:05
 * @LastEditors: aum
 * @LastEditTime: 2021-08-27 18:55:56
 * @Description: 导出所有业务模块路由
 * @FilePath: \vue3-hand-vant\src\router\modules\index.ts
 */
import { RouteRecordRaw } from 'vue-router'
const files: any = require.context('./', true, /\.ts$/)

let routes: RouteRecordRaw[] = []

files.keys().forEach((key: any) => {
  routes = routes.concat(files(key).default)
})

export default routes.filter((x) => x)
